import BaseLayout from '@/views/layout/BaseLayout.vue';
import UserLayout from '@/views/layout/UserLayout.vue';

export default [
  {
    path: '/',
    component: BaseLayout,
    children: [
      { path: '', name: 'homeIndex', meta: { title: '首页' }, component: (resolve) => require(['@/views/home/index.vue'], resolve) },
      { path: 'notice', name: 'noticeIndex', meta: { title: '消息' }, component: (resolve) => require(['@/views/notice/index.vue'], resolve) }
    ]
  },

  {
    path: '/mutually',
    component: BaseLayout,
    children: [
      { path: 'buy', name: 'mutuallyBuyIndex', meta: { title: '我要刷单' }, component: (resolve) => require(['@/views/mutually/buy/index.vue'], resolve) },
      { path: 'buy/record', name: 'mutuallyBuyRecord', meta: { title: '刷单记录' }, component: (resolve) => require(['@/views/mutually/buy/record.vue'], resolve) },
      { path: 'buy/pay', name: 'mutuallyBuyPay', meta: { title: '确认打款' }, component: (resolve) => require(['@/views/mutually/buy/pay.vue'], resolve) },

      { path: 'sell', name: 'mutuallySellIndex', meta: { title: '我要提现' }, component: (resolve) => require(['@/views/mutually/sell/index.vue'], resolve) },
      { path: 'sell/record', name: 'mutuallySellRecord', meta: { title: '提现记录' }, component: (resolve) => require(['@/views/mutually/sell/record.vue'], resolve) },
			{ path: 'sell/confirm', name: 'mutuallySellConfirm', meta: { title: '确认收款' }, component: (resolve) => require(['@/views/mutually/sell/confirm.vue'], resolve) }
    ]
  },

  {
    path: '/shop',
    component: BaseLayout,
    children: [
      { path: '', name: 'shopIndex', meta: { title: '商城' }, component: (resolve) => require(['@/views/shop/index.vue'], resolve) }
    ]
  },

  {
    path: '/user',
    component: UserLayout,
    children: [
      { path: '', name: 'userIndex', meta: { title: '我的' }, component: (resolve) => require(['@/views/user/index.vue'], resolve) },
      { path: 'login', name: 'userLogin', meta: { title: '登陆' }, component: (resolve) => require(['@/views/user/login.vue'], resolve) },
      { path: 'forgetPassword', name: 'userForgetPassword', meta: { title: '忘记密码' }, component: (resolve) => require(['@/views/user/forgetPassword.vue'], resolve) },
      { path: 'wallet/record', name: 'userWalletRecord', meta: { title: '记录' }, component: (resolve) => require(['@/views/user/wallet/record.vue'], resolve) },
      { path: 'info', name: 'userInfo', meta: { title: '个人资料' }, component: (resolve) => require(['@/views/user/info.vue'], resolve) },
      { path: 'changeLoginPassword', name: 'userChangeLoginPassword', meta: { title: '修改登陆密码' }, component: (resolve) => require(['@/views/user/changeLoginPassword.vue'], resolve) },
      { path: 'changeSafePassword', name: 'userChangeSafePassword', meta: { title: '修改安全密码' }, component: (resolve) => require(['@/views/user/changeSafePassword.vue'], resolve) },
      { path: 'create', name: 'userCreate', meta: { title: '注册' }, component: (resolve) => require(['@/views/user/create.vue'], resolve) },
      { path: 'wallet/appointment/transfer', name: 'UserWalletAppointmentTransfer', meta: { title: '预约币转账' }, component: (resolve) => require(['@/views/user/wallet/appointment/transfer.vue'], resolve) },
      { path: 'team', name: 'userTeam', meta: { title: '我的直推' }, component: (resolve) => require(['@/views/user/team.vue'], resolve) },
			{ path: 'message', name: 'userMessageIndex', meta: { title: '留言' }, component: (resolve) => require(['@/views/user/message/index.vue'], resolve) }
    ]
  }
];
